package com.guessnumber;

import com.guessnumber.guess.chestinterface.testitem;
import com.guessnumber.guess.nogui;
import com.guessnumber.soundplayer.test1;
import org.bukkit.Bukkit;
import org.bukkit.plugin.java.JavaPlugin;
import com.guessnumber.guess.chestinterface.show;
import com.guessnumber.listener.listener;

import java.util.logging.Logger;

public final class Guessnumber extends JavaPlugin {
    public Logger Logger = getLogger();
    @Override
    public void onEnable() {
        // Plugin startup logic
        Bukkit.getPluginCommand("testitem").setExecutor(new testitem());
        Bukkit.getPluginCommand("guessnumber").setExecutor(new nogui());
        Bukkit.getPluginCommand("item_showing").setExecutor(new show());
        Bukkit.getPluginCommand("test1").setExecutor(new test1());
        Bukkit.getPluginManager().registerEvents(new listener(),this);
        //System.out.println("run");
        Logger.info("run");
    }

    @Override
    public void onDisable() {
        // Plugin shutdown logic
        Logger.info("stop");
    }
}
